package com.pfs.internal.timestamp.entities;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name = "CardHolder")
public class CardHolder {
	@Id
	private Integer recordID;
	private Integer accountID;
	private Date timeStamp;
	private Integer userID;
	private Integer nodeID;
	@Column(name = "deleted", columnDefinition = "tinyint")
	private Integer deleted;
	@Column(name = "userPriority", columnDefinition = "smallint")
	private Integer userPriority;
	@Column(name = "firstName", columnDefinition = "nvarchar")
	private String firstName;
	@Column(name = "lastName", columnDefinition = "nvarchar")
	private String lastName;
	@OneToMany(fetch = FetchType.LAZY, mappedBy = "cardHolder")
	private List<History> histories;
	public Integer getRecordID() {
		return recordID;
	}

	public void setRecordID(Integer recordID) {
		this.recordID = recordID;
	}

	public Integer getAccountID() {
		return accountID;
	}

	public void setAccountID(Integer accountID) {
		this.accountID = accountID;
	}

	public Date getTimeStamp() {
		return timeStamp;
	}

	public void setTimeStamp(Date timeStamp) {
		this.timeStamp = timeStamp;
	}

	public Integer getUserID() {
		return userID;
	}

	public void setUserID(Integer userID) {
		this.userID = userID;
	}

	public Integer getNodeID() {
		return nodeID;
	}

	public void setNodeID(Integer nodeID) {
		this.nodeID = nodeID;
	}

	public Integer getDeleted() {
		return deleted;
	}

	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}

	public Integer getUserPriority() {
		return userPriority;
	}

	public void setUserPriority(Integer userPriority) {
		this.userPriority = userPriority;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

}
